package com.njzxw.fs.commonutil.web;

import com.njzxw.fs.commonutil.util.LoadSpringBean;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextClosedEvent;

public class ContextClosedListener implements ApplicationListener<ContextClosedEvent> {

    public org.slf4j.Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private LoadSpringBean loadSpringBean;

    @Override
    public void onApplicationEvent(ContextClosedEvent event) {
        logger.debug("关闭成功。。。。");
//        loadSpringBean.unReload();
    }
}
